<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	request.setCharacterEncoding("UTF-8");

	int cpage = 1;
	if (request.getParameter("cpage") != null
			&& !request.getParameter("cpage").equals("")) {
		cpage = Integer.parseInt(request.getParameter("cpage"));
	}
%>

<meta http-equiv='content-type' content='text/html;charset=UTF-8'>
<link rel='stylesheet' type='text/css' href='../images/common.css'>

<script language="javascript">
	function checkfrm() {
		if (ifrm.subject.value == "") {
			alert("제목이 없습니다");
			return false;
		}
		if (ifrm.writer.value == "") {
			alert("이름이 없습니다");
			return false;
		}
		if (ifrm.passwd.value == "") {
			alert("암호가 없습니다");
			return false;
		}
	}
</script>

<table>
	<tr>
		<td height='600' valign='top'></td>
		<td valign='top'>
			<table width='750px' border='0' cellpadding='0' cellspacing='0'
				align='center'>
				<tr>
					<td height='23' bgcolor='#f0f0f0' align='right'></td>
				</tr>
				<tr>
					<td bgcolor='#ffffff' style='padding: 20'>
						<form action='board_write1_ok.jsp' name='ifrm' method='post' onsubmit='return checkfrm()'>
							<table width='100%' border='0' cellpadding='0' cellspacing='0'>
								<tr>
									<td width='70' style='padding: 5' valign='top' align='right'>
										<font class='titdot'>&#149;&nbsp;</font> <font class='title'>제목</font>:
									</td>
									<td><input type='text' name='subject' size='80'	maxlength='40' class='form'></td>
								</tr>
								<tr>
									<td colspan='2' class='imgline'></td>
								</tr>
								<tr>
									<td width='70' style='padding: 5' valign='top' align='right'>
										<font class='titdot'>&#149;&nbsp;</font> <font class='title'>이름</font>	:
									</td>
									<td><input type='text' name='writer' size='10' maxlength='8' class='form'>&nbsp;&nbsp;/&nbsp;
										메일&nbsp;&nbsp;<input type='text' name='mail' size='40'
										maxlength='50' class='form'>&nbsp;&nbsp;/&nbsp;
										암호&nbsp;&nbsp;<input type='password' name='passwd' size='10'
										maxlength='10' class='form'>
									</td> 
 
								</tr>
								<tr>
									<td colspan='2' class='imgline'></td>
								</tr>
								<tr>
									<td width='70' style='padding: 5' valign='top' align='right'>
										<font class='titdot'>&#149;&nbsp;</font> <font class='title'>내용</font>
										:
									</td>
									<td><textarea name='content' style='width: 620; height: 300' class='form'></textarea></td>

								</tr>
								<tr>
									<td colspan='2' class='gline'></td>
								</tr>
								<tr>
								<td>
								</td>
																	<td> 
									파일1:<input type="file" name="file1" /><br> 
									파일2:<input type="file" name="file2" /><br> 
									파일3:<input type="file" name="file3" /><br>
									</td>
								</tr>
								<tr>
								<td colspan='2' class='gline'></td>
								</tr>
								
							</table>

							<table width='100%' cellpadding='0' cellspacing='0' border='0'>
								<tr>
									<td width='500' height='30'>&nbsp;</td>
									<td align='right'><input type='image'
										src='../images/btn_wri.gif' border='0'>&nbsp; <a
										href='board_list1.jsp?cpage=<%=cpage%>'><img
											src='../images/btn_list.gif' border='0'></a></td>
								</tr>
							</table>
						</form>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>